<!-- MAIN CONTENT -->
<script src="../js/echarts.js"></script>
<div id="content">
    <div smart-include="sensor/views/sub-header.tpl.html"></div>
   
    <!-- widget grid -->
    <section id="widget-grid" class="">
        <!-- row -->
        <div class="row">
            <article class="col-sm-12">
                <!-- new widget -->
                    <div class="no-padding">
                        <div class="data_style">
                            <ul class="nav nav-tabs" style="margin-left:-11px;">
                                <li class="active">
                                    <a href="#home" data-toggle="tab">
                                        <strong>图表结构</strong>
                                    </a>
                                </li>
                                <li><a href="#ios" data-toggle="tab"><strong>列表结构</strong></a></li>
                            </ul>
                            <div class="tab-content">
                                <div class="tab-pane fade in active" id="home" href="#">
                                    <div class="minblock">
                                        <div class="smclock col-xs-12 col-sm-6  col-lg-3"></div>
                                    </div>                                  
                                </div>
                                <div class="tab-pane fade" id="ios" style="margin-left:12px;">
                                    <div class="row alldev bg-color-white">
                                        <div class="col-xs-12 col-sm-6 col-md-4 col-lg-2 actTop" ng-repeat="dev1 in devs">
                                            <div class="data_header">
                                                <div class="text_align_left nameSize deviceS">
                                                    <b> 设备号:{{dev1.deviceid}}</b>
                                                </div>
                                            </div>
                                            <div class="data_body">
                                                <div class="clearfix">
                                                    <div ng-repeat="dev in DATAS" class="col-sm-12 actData data_list">
                                                        <p class="pull-left" style="width:50%">
                                                            {{dev.name}}
                                                        </p>
                                                        <p class="pull-left valueColor valueSize">
                                                            <b>{{dev1[dev.key] | number:2}}</b>
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="data_footer">
                                                <button class="btn_none width30"><span class="{{i.status | status}}">在线</span></button>
                                                <button class="btn_none width30">
                                                    <a ui-sref="app.sensor.watchcharts({deviceid:i.id})"><img src="styles/img/传感器曲线.png"></a>
                                                </button>
                                                <button class="btn_none width30">
                                                    <a ui-sref="app.sensor.historicaldata({'port':8053,'deviceid':i.id})"><img src="styles/img/传感器列表.png"></a>
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                           
                        </div>
                    </div>
                    <!-- end widget div -->
                   
            </article>
        </div>

        <!-- end row -->
    </section>
    <!-- end widget grid -->
</div>
